package org.example;
import lombok.Data;
import java.io.IOException;
@Data
//暂存响应体的内容
public class MyPrintWriter {
    private byte[] bytes=new byte[2048];
    //暂存响应体的内容的字节位置
    private int pos=0;
    public void write(byte[] b) throws IOException {
        for(int i=0;i<b.length;i++){
            bytes[pos]=b[i];
            pos++;
        }
    }

}
